﻿@model VietPremier.Models.GetTravelProductModel
@{
    if (Model != null)
    {
        ViewBag.Title = Model.travelProduct.Titletag;
        ViewBag.Description = Model.travelProduct.Meta_description;
        ViewBag.Keywords = Model.travelProduct.Meta_keyword;
    }
}

<div class="row-fluid">
    <div class="span3">
        @Html.Action("LeftMenu", "Home")
        <!--/ .box-->
        @Html.Action("Onlinesupport", "Home")
        <!--/ .support-->
        @*@Html.Action("Spotlight","Home")*@
        <!--/ .box-->
        @Html.Action("News_Event", "Home")
    </div>
    <!--/ .span3-->
    <div class="span9">
        <div class="link-page">
            <a href="@Url.Action("Index", "Home")">Trang chủ&nbsp;<img src="../../Content/cssFrontEnd/images/iconmt.png" />&nbsp;</a>
            <a href="@Url.Action("Information", "TravelInformation")">Sản phẩm du lịch&nbsp;<img src="../../Content/cssFrontEnd/images/iconmt.png" />&nbsp;</a>
            @if (Model != null)
            {            
                <span>@Model.travelProduct.Name</span>
            }
        </div>
        <div class="box-about" id="box_about">
            @if (Model != null)
            { 
                <h5>@Model.travelProduct.Name</h5>
                @Html.Raw(Model.travelProduct.About)
            }
            else
            {
                <h5>This page is updated content</h5>
            }
        </div>
        <!--/ .box-about-->
        @if (Model != null)
        {
            <div id="where_we_go">
                <h5>Địa điểm du lịch</h5>
                <div class="box">
                    <div class="wherewego">
                        <ul id="wherewego">
                            @{                        
                                int count = Model.listTravelCity.Count;
                                int number = 0;
                                for (int i = 0; i < (count % 6 == 0 ? count / 6 : count / 6 + 1); i++)
                                {                            
                                <li>
                                    @{
                                        int loop = (6 * i + 6);
                                        int r = (loop % 2 == 0 ? loop / 2 : loop / 2 + 1);
                                        for (int j = number; j < (loop % 2 == 0 ? loop / 2 : loop / 2 + 1); j++)
                                        {
                                            if (2 * j < count)
                                            {
                                                <div class="it">
                                                    <div class="img">
                                                        <div class="img-inner">
                                                            <a href="@Url.Action("City", "TravelInformation", new { title = Utilities.Encode(Model.listTravelCity[2 * j].Name), country = Utilities.Encode(@Model.travelProduct.Name) })">
                                                                <img src="@Url.Content(string.Concat("~/Content/upload/travelcity/", @Model.listTravelCity[2 * j].Image))" style =" width: 150px; height:80px"/></a>
                                                        </div>
                                                    </div>
                                                    <a class="title" href="@Url.Action("City", "TravelInformation", new { title = Utilities.Encode(Model.listTravelCity[2 * j].Name), country = Utilities.Encode(@Model.travelProduct.Name) })">
                                                        <span>@Model.listTravelCity[2 * j].Name</span><br />
                                                        <i><small>@Html.Raw(@Model.listTravelCity[2 * j].Description)...</small></i>
                                                    </a>
                                                </div>
                                            }
                                            if (2 * j + 1 < count)
                                            {
                                                <div class="it">
                                                    <div class="img">
                                                        <div class="img-inner">
                                                            <a href="@Url.Action("City", "TravelInformation", new { title = Utilities.Encode(Model.listTravelCity[2 * j + 1].Name), country = Utilities.Encode(@Model.travelProduct.Name) })">
                                                                <img src="@Url.Content(string.Concat("~/Content/upload/travelcity/", @Model.listTravelCity[2 * j + 1].Image))" style =" width: 150px; height:80px" /></a>
                                                        </div>
                                                    </div>
                                                    <a class="title" href="@Url.Action("City", "TravelInformation", new { title = Utilities.Encode(Model.listTravelCity[2 * j + 1].Name), country = Utilities.Encode(@Model.travelProduct.Name) })">
                                                        <span>@Model.listTravelCity[2 * j + 1].Name</span><br />
                                                        <i><small>@Html.Raw(@Model.listTravelCity[2 * j + 1].Description)...</small></i>
                                                    </a>
                                                </div>
                                            }
                                            number = (j + 1);
                                        }
                                    }
                                </li>                               
                                }                       
                            }
                        </ul>
                        <div id="slide-pager">
                            <a href="#" id="wherewego_next">
                                <img src="../../Content/cssFrontEnd/images/btn-down.png" /></a>
                        </div>
                        <!--/ #slide-pager-->
                    </div>
                    <!--/ .wherewego-->
                    <div class="clear"></div>
                </div>
                <!--/ .box-->
                <div class="line_wts" id="where_to_say">
                    <h5>Khách sạn</h5>
                    <ul id="wheretosay">
                        @foreach (var travelHotel in Model.listTravelHotel)
                        {
                            <li>
                                <a href="@Url.Action("Hotel", "TravelInformation")">
                                    <img src="@Url.Content(string.Concat("~/Content/upload/travelhotels/", travelHotel.Image))" /></a>
                            </li>
                        }

                    </ul>
                    <!--/ .wheretosay-->
                </div>
                <!--/ .line_wts-->
            </div>
        }
    </div>
    <!--/ .span9-->
</div>
<!--/ .row-fluid-->
